
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/7/27
  Time: 17:06
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="../css/pintuer.css">
    <link rel="stylesheet" href="../css/admin.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改老师</strong></div>

    <%--    <form method="post" class="form-x" action="TeacherUpdateservlet?id=${teacher.id}">--%>
    <%--        <form method="post" class="form-x" action="TeacherUpdateservlet">--%>
    <form method="post" class="form-x" action="WorkersServlet?flag=4">
        <div class="form-group">
            <input type="hidden" name="id" value="${workers.id}">
            <div class="label">
                <label>员工姓名：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" value="${workers.uname}" name="uName" data-validate="required:请输入员工姓名" />
                <div class="tips"></div>
            </div>
        </div>

        <%--<div class="form-group">
            <div class="label">
                <label>密码：</label>
            </div>
            <div class="field">
                <input type="password" class="input w50"  name="password"  />
                <div class="tips"></div>
            </div>
        </div>--%>

        <div class="form-group">
            <div class="label">
                <label>性别：</label>
            </div>
            <div class="field">
                <div class="button-group radio">
                    <c:if test="${workers.sex==true}">
                        <label class="button active">
                            <span class="icon icon-check"></span>
                            <input name="sex" value="男" type="radio" checked="checked">男&nbsp;
                        </label>
                        <label class="button active">
                            <span class="icon icon-times"></span>
                            <input name="sex" value="女" type="radio" >女
                        </label>

                    </c:if>
                    <c:if test="${workers.sex!=true}">
                        <label class="button active">
                            <span class="icon icon-check"></span>
                            <input name="sex" value="男" type="radio">男
                        </label>
                        <label class="button active">
                            <span class="icon icon-times"></span>
                            <input name="sex" value="女" type="radio"  checked="checked">女
                        </label>
                    </c:if>
                </div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label>联系电话：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" value="${workers.phonenumber}" name="telephone" data-validate="required:" />
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label>职位：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" value="${workers.job}" name="job" data-validate="required:" />
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label>所属部门：</label>
            </div>
            <select name="cid" id="leixing" class="input" style="width:200px; line-height:17px;" >
                <option value="${workers.did}" selected>${dName}</option>
                <c:forEach items="${dptNames}" var="dptName">
                    <option value="${dptName.id}">${dptName.dptName}</option>
                </c:forEach>

            </select>
        </div>



        <div class="label">
            <label></label>
        </div>
        <div class="field">
            <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>


    </form>
</div>
</div>

</body>
</html>
